package com.mmall.controller.backend;


import com.mmall.common.ServerResponse;
import com.mmall.pojo.Menu;
import com.mmall.service.IMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/manage/menu")
public class MenuController {

    @Autowired
    private IMenuService iMenuService;

    @RequestMapping("list")
    @ResponseBody
    public ServerResponse<List<Menu>> queryAllMenu(){
        return iMenuService.queryAllMenu();
    }



}
